package controlador;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import vista.VentanaPrincipal;
import modelo.Cliente;
import modelo.MPrima;
import modelo.Producto;
import modelo.Proveedor;


public class ControladorPrincipal implements ActionListener {
	private VentanaPrincipal vp;
	private MPrima mp;
	private Proveedor p;
	private Cliente cli;
	private Producto prod;
	
	
	public ControladorPrincipal() {
		vp =  new VentanaPrincipal();
		vp.setLocationRelativeTo(null);
		vp.setVisible(true);
		vp.agregarListeners(this);
	}


	@Override
	public void actionPerformed(ActionEvent e) {
		ControladorMPrima cmp;
		ControladorProveedor cp;
		
		
		if (e.getActionCommand().equalsIgnoreCase("Materia Prima")){
			cmp = new ControladorMPrima();
		}
		
		else if (e.getActionCommand().equalsIgnoreCase("Proveedor")){
			cp = new ControladorProveedor();
		}
		
	}

}
